package org.example.lottery_system.common;

import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.filter.Filter;
import ch.qos.logback.core.spi.FilterReply;

public class InfoLevelFelter {
    public class InfoLevelFilter extends Filter<ILoggingEvent> {

        @Override
        public FilterReply decide(ILoggingEvent iLoggingEvent) {
             if (iLoggingEvent.getLevel().toInt() == Level.INFO.toInt()){
                 return FilterReply.ACCEPT;
                }
             return FilterReply.DENY;
             }
 }
}
